Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2318>
y = stageY - this._dragActor.height / 2;
}
this._dragActor.set_position(x, y);
+
+ this._dragActorSourceDestroyId = this._dragActorSource.connect('destroy', () => {
+ this._dragActorSource = null;
+ });
} else {
this._dragActorSource = this.actor;
}
this._dragOrigParent = null;
}
+ if (this._dragActorSource) {
+ this._dragActorSource.disconnect(this._dragActorSourceDestroyId);
+ this._dragActorSource = null;
+ }
+
this._dragState = DragState.INIT;
currentDraggable = null;
}